package zjc.程序流程控制;

import java.util.Scanner;

public class 死循环 {
    public static void main(String[] args) {
        /*while(true){
            System.out.println("操你妈");
        }*/
        //案例：输入密码
        Scanner shuru = new Scanner(System.in);
        int mima=520;
        while(true){
            System.out.println("请输入密码");
            int sr=shuru.nextInt();
            if(sr==mima){
                System.out.println("密码正确");
                break;
            }else{
                System.out.println("密码错误");
            }
        }
    }
}
